package com.ap.generator.rtp;

import com.ap.core.cxf.jaxb.rtp.AbstractRTPSenderInfoTypeGeneratorBuilder;
import com.ap.generator.common.FieldGenerator;

import static com.ap.datagen.core.GeneratorHelper.buildA;
import static com.ap.datagen.core.Nullable.nullable;
import static com.ap.generator.distributor.DetailMerchantInfoGeneratorBuilder.getDetailMerchantInfoGenerator;
import static com.ap.generator.distributor.DistributorInfoTypeGeneratorBuilder.distributorInfoTypeGeneratorBuilder;

public class RTPSenderInfoTypeGeneratorBuilder extends
		AbstractRTPSenderInfoTypeGeneratorBuilder {

	@Override
	public void setupDefaults() {
		this.adhocGenerator = FieldGenerator.ADHOCGENERATOR;
		this.detailMerchantInfoGenerator = nullable(buildA(getDetailMerchantInfoGenerator()));
		this.distributorInfoGenerator = nullable(buildA(distributorInfoTypeGeneratorBuilder()));
	}

	public static RTPSenderInfoTypeGeneratorBuilder getRTPSenderInfoTypeGenerator() {
		return new RTPSenderInfoTypeGeneratorBuilder();
	}
}
